#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
#include <string.h>

int main1()
{
	int* i = 0;
	char* j = 0;
	double* k = 0;
	printf("i = %p\ni + 1 = %p\n", i, i + 1);
	printf("j = %p\nj + 1 = %p\n", j, j + 1);
	printf("k = %p\nk + 1 = %p\n", k, k + 1);

	return 0;
}
int main2()
{
	int* i = 0;
	void* p = i;
	printf("%p",(int*)p + 1);

	return 0;
}
void testp1(int n)
{
	const int* p = n;
	p++;
	*p = 20;
}
void testp2(int n)
{
	int* const p = n;
	p++;
	*p = 20;
}
int main()
{
	int n = 1;
	testp1(n);
	testp2(n);
	return 0;
}